package org.dromara.bean.domain.bo;

import cn.hutool.json.JSONArray;
import org.dromara.bean.domain.HisQuestionnaire;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 问卷业务对象 his_questionnaire
 *
 * @author Lion Li
 * @date 2024-11-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HisQuestionnaire.class, reverseConvertGenerate = false)
public class HisQuestionnaireBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 问卷标题
     */
    @NotBlank(message = "问卷标题不能为空", groups = {AddGroup.class, EditGroup.class})
    private String title;

    /**
     * 返回结果
     */
    @NotBlank(message = "返回结果不能为空", groups = {AddGroup.class, EditGroup.class})
    private String results;


    /**
     * 题目
     */
//    @NotBlank(message = "题目不能为空", groups = {AddGroup.class, EditGroup.class})
    private String topic;



    /**
     * 问卷封面
     */
    @NotBlank(message = "问卷封面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photo;



}
